package com.jxbeidou.login.service;

import com.jxbeidou.core.entity.SecurityUserVO;
import com.jxbeidou.login.entity.JwtVO;
import com.jxbeidou.login.entity.LoginUserDTO;


/**
 * @program: jxbeidou-basic
 * @ClassName: LoginUserService
 * @description: 用户登录
 * @author: 杜晓祥
 * @create: 2023-12-26 15:30
 * 版权所有：交信北斗(北京)信息科技有些公司
 */
public interface LoginUserService {



    /**
     * 根据用户名验证登录信息是否正确
     * @Author 杜晓祥
     * @Date 2023/12/26
     * @param user
     * @return com.jxbeidou.core.entity.SecurityUserVO
     */
    SecurityUserVO findByUserInfo (String ip, LoginUserDTO user);

    JwtVO generateToken (String ip, LoginUserDTO user) ;

    /**
     * 用户登出
     * @Author 杜晓祥
     * @Date 2023/12/26
     */
    boolean logout (String ip);

}
